package me.cloudcat.develop.entity.configuration;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Version;

import me.cloudcat.develop.entity.BaseEntity;
/**
 * 
 * @author ZZWang
 * @Time 2017年1月17日  下午2:55:16
 *
 */
@Entity
@Table(name="tbl_role_menu")
//@SequenceGenerator(name="SEQ_STORE", sequenceName="TBL_ROLE_MENU_ID_ASQ", allocationSize=1)
public class RoleMenu extends BaseEntity<RoleMenu>{

	/**
	 * 
	 */
	private static final long serialVersionUID = 5866205749417815890L;

	@ManyToOne(fetch=FetchType.EAGER)
	private Role role;
	@Column(name="no")
	private String number;
	

	@Version
	private int version;
	

	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}
	public Role getRole() {
		return role;
	}
	public void setRole(Role role) {
		this.role = role;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	
	
}
